package com.cheejee.goodscenter.module.vo;

import com.cheejee.goodscenter.module.entity.BrandPropertiesGroup;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

/**
 * @author CARRY
 * @Date 2020年10月30日上午2:36:03
 */
@Data
@Builder
@ApiModel("品牌属性分组")
public class BrandPropertiesGroupVo {

	@ApiModelProperty("品牌ID")
    private Integer brandId;

	@ApiModelProperty("分组名称")
    private String groupName;

	@ApiModelProperty("描述")
    private String describe;
    
    public static BrandPropertiesGroup convert(Integer id, BrandPropertiesGroupVo vo) {
    	return new BrandPropertiesGroup(id, vo.getBrandId(), vo.getGroupName(), vo.getDescribe());
    }
}
